package com.tao.codeblock_;

public class CodeBlockDetail03 {
    public static void main(String[] args) {
        new BBB();
    }
}

class AAA{
    {
        System.out.println("AAA的普通代码块");
    }
    public AAA() {
        //先调用super()
        //再调用本类的普通代码块
        System.out.println("AAA的构造器");
    }
}

class BBB extends AAA{
    {
        System.out.println("BBB的普通代码块");
    }

    public BBB() {
        //先调用super()到AAA构造器
        //再调用本类的普通代码块
        System.out.println("BBB的构造器");
    }
}
